package cn.it.shop.model.flow;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/***
 * 流程主体实体(流程主体,第一个)
 * @author Administrator
 *
 */
@Entity
@Table(name="PT_FLOW_REPLY")
public class FlowReply {
	
	private long id;//流程主体id
	
	private String name;//流程名称
	
	private String title;//流程标题
	
	private FlowParameter flowParameter;//流程图文(外键)
	
	
	
	@Id
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@OneToOne
	@JoinColumn(name="flowpid")
	public FlowParameter getFlowParameter() {
		return flowParameter;
	}

	public void setFlowParameter(FlowParameter flowParameter) {
		this.flowParameter = flowParameter;
	}

	
	
	
}
